<template>
    <div id="video-player" class="video-player"></div>
</template>
<script setup>
    import Player from 'xgplayer'
    import FlvPlugin from 'xgplayer-flv'
    import "xgplayer/dist/index.min.css"
    import { nextTick } from 'vue'
        nextTick(()=>{
            const player = new Player({
                id: 'video-player',
                url: 'ws://172.30.30.89:559/openUrl/vsigI1TPnmo4f5d166d0b994006b6df9', // flv 流地址
                isLive: true,
                plugins: [FlvPlugin] // 第二步
            })
        })
</script>
 
<style></style>